# 拆分字符串
url = 'www.swu.edu.cn'
print(url.partition('.'))
print(url.rpartition('.'))
print(url.split('.'))
story = 'A long time ago, I came to Southwest University.'
print(story.split())
